package com.lin.pay.paypal.v1;

import java.util.Base64;

public class PaypalUtils {

    public static String getBasicBearerToken(String clientId, String secret) {
        String token = clientId.trim() + ":" + secret.trim();
        token = token.replace("\"", "");
        String accessToken = Base64.getEncoder().encodeToString(token.getBytes());//new String(token)
        return "Basic " + accessToken;
    }
}
